package org.vacoor.nothing.security;

import org.vacoor.nothing.security.iplocator.TaobaoIPLocator;

/**
 * Created by Administrator on 2015/2/28.
 */
public class Test {

    public static void main(String[] args) throws ClassNotFoundException {
        for (String arg : args) {
            System.out.println("参数:" + arg);
        }
        /*
        // garbage collector
        final long before = Runtime.getRuntime().freeMemory();
        doGc();
        final long after = Runtime.getRuntime().freeMemory();
        long size = (after - before) / 1024;
        System.out.println("释放内存" + size + "KB");
        */
        String locate = new TaobaoIPLocator().locate("207.46.0.79");
        System.out.println(locate);
    }

    private static void doGc() {
        Runtime.getRuntime().gc();
    }
}
